let actionLog  = require('../model/backend/actionLog');
let backendToken = require('./backend_token');
//管理员操作行为记录

exports.crearteActionLog   =  async function (req,action,actionContent) {
    // let userInfo = await backendToken.decodeToken(req);
    let userId =  '1';
    let userName ='admin';
    let role  = 'admin';
    //操作记录插入数据库
    await actionLog.createdLog(userId,userName,role,action,actionContent);
}